/**
 * Created by Eoly on 2017/1/3.
 */
function GivingPack() {
    var _this = this;
    Plane.call(this);
    this.mark = 222;
    this.collisionDamage = -100;

    _this.playerBelongs = new function () {
        this.id = 10;
    };
    this.mainWeaponPack = null;
    this.secondaryWeaponPack = null;

    this.MainPack = null;
    this.SecondaryPack = ShotPack;

    this.modelUsed = new GivingShotModel();


    this.runningTrack = new GivingTrack();

    _this.init = function () {

        _this.deathEffects.fillColor.setRGBA(100,255,100,0.8);
        _this.deathEffects.strokeColor.setRGBA(100,255,100,0.8);

        _this.deathEffects.max_r = _this.modelUsed.radius * 2;
        _this.deathEffects.risingIndex = 1.2;
    };

    this.init();

}
Extend(Plane,GivingPack);

function RandomGivingPack() {
    var _this = this;
    GivingPack.call(this);
    this.MainPack = RandomPack;
    this.SecondaryPack = null;
    _this.modelUsed = new GivingRandomModel();
}
Extend(GivingPack,RandomGivingPack);

function RandomSGivingPack() {
    var _this = this;
    GivingPack.call(this);
    this.MainPack = RandomSPack;
    this.SecondaryPack = null;
    _this.modelUsed = new GivingRandomSModel();
}
Extend(GivingPack,RandomSGivingPack);

function FollowGivingPack() {
    var _this = this;
    GivingPack.call(this);
    this.MainPack = null;
    this.SecondaryPack = RandomFallowPack;
    _this.modelUsed = new GivingFollowModel();
}
Extend(GivingPack,FollowGivingPack);

function RayGivingPack() {
    var _this = this;
    GivingPack.call(this);
    this.MainPack = RayPack;
    this.SecondaryPack = null;
    _this.modelUsed = new GivingRayModel();
}
Extend(GivingPack,RayGivingPack);

function DefenseGivingPack() {
    var _this = this;
    GivingPack.call(this);
    this.MainPack = null;
    this.SecondaryPack = DefensePack;
    _this.modelUsed = new GivingDefenseModel();
}
Extend(GivingPack,DefenseGivingPack);
